package tt.dz.biz.job;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import tt.dz.biz.service.batchpay.BatchPayService;
import tt.dz.common.AppContxtUtil;
import tt.dz.common.DzConstants;
import tt.dz.common.DzConstants.sysJob;
import tt.dz.common.LogUtil;

public class BatchPayJob
  extends AbstractJob
{
  protected void executeJob(JobExecutionContext context)
    throws JobExecutionException
  {
    BatchPayService batchPayService = (BatchPayService)AppContxtUtil.getBean("batchPayService");
    try
    {
      batchPayService.saveBatchPayJOB();
    }
    catch (Exception e)
    {
      LogUtil.error("运行统付批次生成发生异常", e);
    }
  }
  
  protected String getJobCode()
  {
    return DzConstants.sysJob.BATCHPAY_JOB.value();
  }
}
